<jsp:include page="logincheck.jsp" />
<%@ page import="java.util.*" %>

<jsp:useBean id="adminAcct" class="se2.Administrator" scope="request"/>
<jsp:setProperty name="adminAcct" property="*"/>

<% 
	if (adminAcct.editAdministrator())
	{
%>
		<jsp:forward page="viewAdministratorAccount.jsp" />
<%
	}
	else
	{
		out.println("Failed to Create Administrator Account");
%>
		<jsp:forward page="error.jsp?&url=editAdministratorAccount.jsp?id=<%= adminAcct.getId() %>" />
<%
	}
%>
